Skip to content

Conversation

@nicolasstucki
Copy link
Contributor

No description provided.

myTree
}
private[this] var myTree: tpd.Tree /* tpd.PackageDef | tpd.TypeDef | tpd.EmptyTree */ = tpd.EmptyTree
private[this] var myTasty: Array[Byte] = _
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If possible, I would rather not add a field to every ClassSymbol for this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The alternative is to keep the unpickler longer. I will go back to that solution.

@OlivierBlanvillain
Copy link
Contributor

I guess the title should now be "Keep loaded pickled tasty when compiling from tasty", but the diff is LGTM! Did you try testing than re-pickling these trees leads to the same tasty?

@nicolasstucki nicolasstucki changed the title Add missing pickler in TASTYCompiler Keep loaded pickled tasty when compiling from tasty Nov 20, 2017
@nicolasstucki nicolasstucki merged commit 51bc54a into scala:master Nov 20, 2017
@allanrenucci allanrenucci deleted the add-missing-pickler branch December 14, 2017 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants